package io.gitee.redismq.example.listener;

import io.gitee.redismq.core.annotation.StreamListener;
import org.springframework.stereotype.Component;

/**
 * @author: 孙浩
 * @since: 2025-03-05 10:33:20
 */
@Component
public class RedisStreamListener {

    @StreamListener(streamKey = "test-stream",groupName = "test-data")
    public void listenerMessage(String message) {
        System.out.println("接收到消息：" + message);
    }

}
